package lambda;

import java.io.File;
import java.io.FileFilter;

public class LambdaDemo {
    FileFilter filter = new FileFilter() {
        @Override
        public boolean accept(File file) {
            return file.getName().contains("F");
        }
    };
    FileFilter filter1 = (File file) ->{
            return file.getName().contains("F");
    };
    FileFilter filter2 = (file) ->{
        return file.getName().contains("F");
    };
    FileFilter filter3 = (file)-> file.getName().contains("F");

    FileFilter filter4 = f->f.getName().contains("F");
}
